<ul class="nav nav-tabs">
    <?php
        foreach ($data['items'] as $name => $url) {
            $class = '';
            if (!strcasecmp($data['current'], $name)) {
                $class = 'active';
            }
    ?>
    <li class="<?=$class?>"><a href="<?=$url?>"><?=$name?></a></li>
    <?php
        }
    ?>
</ul>
